home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 July
/
EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso
/
earcd
/
dev
/
amos
/
moreusel.lha
/
Fire.AMOS
/
Fire.amosSourceCode
Wrap
AMOS Source Code
|
1997-04-18
|
2KB
|
53 lines
Hide
WX=160 : WY=128
Screen Open 0,320,256,32,0
Curs Off : Flash Off : Paper 0 : Pen 1 : Cls
Extension_8_1722 0,0 To 15,$F00 : Extension_8_1722 15,$F00 To 28,$FF0 : Extension_8_1722 28,$FF0 To 31,$FFF
'Bank Copy 8 To 9
Reserve As Work 9,WX*WY+WX*4
Reserve As Work 10,WX*WY+WX*4
MAD=WX*WY-1
Wait Vbl
Limit Mouse
Repeat
' Wait Vbl
ST1=Start(9)+WX : ST2=Start(10)+WX
XM= Extension_8_1632(X Screen(X Mouse),4 To WX-5) : YM= Extension_8_1632(Y Screen(Y Mouse),4 To WY-5)
Copy ST1,ST1+MAD+1 To ST2
Extension_8_178E ST2,WX,WY-1 To ST1,0
ST=ST1+XM+YM*WX
Poke ST,31
' Poke ST-1,224 : Poke ST+1,224
' Poke ST-WX,224 : Poke ST+WX,224
' Poke ST-1-WX,192 : Poke ST+1-WX,192
' Poke ST-1+WX,192 : Poke ST+1+WX,192
' For A=0 To 99
' Poke ST1+(WY-(Rnd(2)+1))*WX+Rnd(WX-1),255
' Poke ST1+WX*Rnd(WY-1)+Rnd(WX-1),255
' Next
' ST=ST1+WX*(WY-1)
' Fill ST To ST+WX,0
Extension_8_1776 ST1,WX,WY To ST2,0
Extension_8_175A ST2,WX,WY-2 To 0,0,0
Until Mouse Key
While Mouse Key : Wend
Repeat
Wait Vbl
ST1=Start(9)+WX : ST2=Start(10)+WX
XM= Extension_8_1632(X Screen(X Mouse),4 To WX-5) : YM= Extension_8_1632(Y Screen(Y Mouse),4 To WY-5)
Copy ST1,ST1+MAD+1 To ST2
Extension_8_178E ST2+WX,WX,WY-1 To ST1,1
ST=ST1+XM+YM*WX
Poke ST,255
Poke ST-1,224 : Poke ST+1,224
Poke ST-WX,224 : Poke ST+WX,224
Poke ST-1-WX,192 : Poke ST+1-WX,192
Poke ST-1+WX,192 : Poke ST+1+WX,192
For A=0 To 99
Poke ST1+(WY-(Rnd(2)+1))*WX+Rnd(WX-1),255
Next
ST=ST1+WX*(WY-1)
Fill ST To ST+WX,0
Extension_8_1776 ST1,WX,WY To ST2,3
Extension_8_175A ST2,WX,WY-3 To 0,0,0
Until Mouse Key